﻿using System;
using System.Runtime.Serialization;

namespace MyLibrary.Logger
{
    /// <summary>
    /// 日志异常类
    /// </summary>
    public class LogException : ApplicationException
    {
        /// <summary>
        /// 日志异常实例
        /// </summary>
        public LogException()
        {
        }

        /// <summary>
        /// 日志异常实例
        /// </summary>
        /// <param name="message">异常包含的信息</param>
        public LogException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// 日志异常实例
        /// </summary>
        /// <param name="message">异常包含的信息</param>
        /// <param name="innerException">异常包含的内部错误信息</param>
        public LogException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        protected LogException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {

        }
    }
}
